package com.sbck.voiceclient2.myclass;

import android.inputmethodservice.InputMethodService;
import android.util.Log;

public class MyInputMethodService extends InputMethodService {
    @Override
    public void onFinishInput() {
        super.onFinishInput();
        // 输入结束时的处理
        Log.d("SpeechInput", "Input finished");
    }

    @Override
    public void onUpdateSelection(int oldSelStart, int oldSelEnd, int newSelStart, int newSelEnd, int candidatesStart, int candidatesEnd) {
        super.onUpdateSelection(oldSelStart, oldSelEnd, newSelStart, newSelEnd, candidatesStart, candidatesEnd);
        // 监听光标位置变化
        Log.d("SpeechInput", "Selection updated");
    }
}
